package cn.hbwe.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 7组
 * @since 2023-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("booking")
@AllArgsConstructor
@NoArgsConstructor
public class Booking implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 预约信息ID
     */
    @TableId(value = "booking_id", type = IdType.AUTO)
    private Integer bookingId;

    /**
     * 预约状态,0病人预约  1病人就诊
     */
    private Integer bookingState;

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bookingNow;

    /**
     * 问诊时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bookingTime;

    /**
     * 医生ID
     */
    private Integer doctorId;

    /**
     * 病人ID
     */
    private Integer patientId;


    private String time;

    private int scheduleId;

}
